<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/vue-2.4.0.js"></script>
    <style>
      .box {
        width: 100px;
        height: 100px;
        background-color: antiquewhite;
      }
      .fs40 {
        font-size: 40px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div class="box fs40">fs40fs40fs40fs40fs40fs40fs40fs40</div>
      <!-- 数组 -->
      <div :class="[class01,class02]">1、数组1、数组1、数组1、数组</div>
      <!-- 三目表达式 -->
      <div :class="age>17?class01:class02">三目表达式</div>
      <!-- 对象 -->
      <div :class="class03">对象 对象 对象 对象</div>
      <!-- 数组内置对象 -->
      <div :class="class04">数组内置对象 数组内置对象</div>
    </div>
  </body>

  <script>
    let vm = new Vue({
      el: "#app",
      data: {
        age: "18",
        flag: false,
        class01: "box",
        class02: "fs40",
        class03: { box: false, fs40: true },
        class03: [{ box: false }, { fs40: true }],
      },
      methods: {},
    });
  </script>
</html>
